package in.muton.edushare.pages.cp.backup.restore;

import org.apache.wicket.markup.html.panel.EmptyPanel;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import com.edushare.common.vo.Universities;

import in.muton.edushare.pages.EduShareBasePage;
import in.muton.edushare.pages.common.EdusharePanel;

public class RestorePanel extends EdusharePanel {

	private static final long serialVersionUID = -3195943143109010779L;
	public static final String PLACE_HOLDER_PANEL_ID = "bkpWizardPanel";
	protected Panel currentPanel = new EmptyPanel(PLACE_HOLDER_PANEL_ID);
	protected IModel<Universities> univModel;
	public RestorePanel(String id, IModel<Universities> model, EduShareBasePage page) {
		super(id, model, page);
		univModel = model;
		add(currentPanel);
		loadPanel(new ChooseMethodPanel(PLACE_HOLDER_PANEL_ID, univModel, page, this));
	}
	
	
	public void loadPanel(Panel newPanel) {
		currentPanel.replaceWith(newPanel);
		currentPanel = newPanel;
	}

}
